<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			Document
		</title>
		<hdjs/>
	</head>
	<body>
		<div class="wrap">
			<div class="menu_list">
				<ul>
					<li>
						<a href="{|U:'index'}">
							栏目列表
						</a>
					</li>
					<li>
						<a href="{|U:'add'}"  class="action">
							添加栏目
						</a>
					</li>
				</ul>
			</div>
			<div class="title-header" >
				编辑栏目
			</div>

			<form action="" method="post" class="hd-form">
			<table class="table2">
				<input type="hidden" name="cid" value="{$cat.0.cid}">
				<tr>
					<td class="w100">商品类型</td>
					<td>
						<select name="gtid"  class="w200">
							<list from="$goodstype" name="gt">
								<option value="{$gt.gtid}" <if value="{$gt.gtid} eq {$cat.0.gtid}">selected=""</if>>{$gt.gt_name}</option>
							</list>
						</select>
					</td>
				</tr>
				<tr>
					<td>父级</td>
					<td>
						<select name="pid" id="" class="w200">
							<option value="0">==顶级栏目==</option>
							<list from="$category" name="c">
								<option value="{$c.cid}" <if value="{$c.cid} eq {$cat.0.pid}">selected=""</if>>{$c.catname}</option>
							</list>	
						</select>
					</td>
				</tr>
				<tr>
					<td class="w100">栏目名称</td>
					<td><input type="text" name="catname" class="w200" value="{$cat.0.catname}"></td>
				</tr>
				<tr>
					<td>栏目类型</td>
					<td><input type="radio" value="0" checked="" name="cattype" <if value="{$cat.0.cattype} eq 0">checked=""</if>>封面栏目   <input name="cattype" type="radio" value="1" <if value="{$cat.0.cattype} eq 1">checked=""</if>>普通栏目</td>
				</tr>
				
				<tr>
					<td>价格区间</td>
					<td><input type="text" name="price_range" class="w200" value="{$cat.0.price_range}"></td>
				</tr>
				<tr>
					<td>关键字</td>
					<td><input type="text" name="cat_keywords" class="w200" value="{$cat.0.cat_keywords}"></td>
				</tr>
				<tr>
					<td>描述</td>
					<td><textarea name="cat_description" id="" class="h100 w200">{$cat.0.cat_description}</textarea></td>
				</tr>
				<div class="position-bottom">
		            <input type="submit" value="确定" class="hd-success"/>
		        </div>
			</table>
			</form>
		</div>
	</body>
</html>





